package ch03.factory.fabstracted.service.impl;

import ch03.factory.fabstracted.dao.BlogDao;
import ch03.factory.fabstracted.service.BlogService;

/**
 * @author Jane
 * @date 2024-03-22 16:25
 */

public class BlogServiceImpl implements BlogService {

    private BlogDao blogDao;

   /* public BlogServiceImpl(BlogDao blogDao){
        this.blogDao = blogDao;
    }*/

    public void setBlogDao(BlogDao blogDao) {
        this.blogDao = blogDao;
    }


    @Override
    public int add() {
        return blogDao.add();
    }
}
